FROM registry.cn-beijing.aliyuncs.com/sxd/ubuntu-java8:1.0
MAINTAINER harry <418403299@qq.com>

ADD bin/start-gjs-api.sh /root/
COPY target/gjs-api.jar /root/target/gjs-api.jar

RUN chmod u+x /root/start-gjs-api.sh
ARG PROFILE_ACTIVE 
ENV PROFILE_ACTIVE ${PROFILE_ACTIVE}
CMD ["/root/start-gjs-api.sh","${PROFILE_ACTIVE}"]
